﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="KardexItemGrid.ascx.cs" 


Inherits="UILGestion.AlmacenAdmin.KardexItemGrid" %>
<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>
<script src="../Scripts/controlGrid.js" type="text/javascript"></script>
<link href="../css/grids.css" rel="stylesheet" type="text/css" />
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />

    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInsumo" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server" class="ms-crm-List-Header" width="100%">
            <tr id="Tr1" runat="server">
                <th id="Th8" runat="server">
                <asp:LinkButton ID="LinkButton5" CommandName="Sort" CommandArgument="descripcion" runat="server"></asp:LinkButton>
                </th>
                
                <th id="Th1" runat="server">
                    <asp:LinkButton ID="lb2" CommandName="Sort" CommandArgument="descripcion" runat="server">FECHA</asp:LinkButton>
                </th>

               
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="lb3" CommandName="Sort" CommandArgument="descripcion" runat="server">DOC</asp:LinkButton>
                </th>
                <th id="Th4" runat="server" >
                    <asp:LinkButton ID="LinkButton2" CommandName="Sort" CommandArgument="descripcion" runat="server">NUMERO</asp:LinkButton>
                </th>
                <th id="Th5" runat="server">
                    <asp:LinkButton ID="LinkButton3" CommandName="Sort" CommandArgument="descripcion" runat="server">MOTIVO</asp:LinkButton>
                </th>
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="descripcion" runat="server">ENTRADA</asp:LinkButton>
                </th>
               
                <th id="Th6" runat="server">
                    <asp:LinkButton ID="LinkButton4" CommandName="Sort" CommandArgument="descripcion" runat="server">SALIDA</asp:LinkButton>
                </th>
                  <th id="Th11" runat="server">
                    <asp:LinkButton ID="LinkButton8" CommandName="Sort" CommandArgument="descripcion"  runat="server">STOCK</asp:LinkButton>
                </th>
                <th id="Th9" runat="server">
                    <asp:LinkButton ID="LinkButton6" CommandName="Sort" CommandArgument="descripcion"  runat="server">PROVEEDOR</asp:LinkButton>
                </th>

                <th id="Th10" runat="server">
                    <asp:LinkButton ID="LinkButton7" CommandName="Sort"  CommandArgument="descripcion" runat="server">OBSERVACION</asp:LinkButton>
                </th>
 <th id="Th7" runat="server">
                    
                </th>
                     
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#fff":"#eee" %>'>
            <td  align="right">
              
              
                <asp:LinkButton runat= "server"  ToolTip="Nota Ingreso/Nota Salida" ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"enlace").ToString()%>'  
                 Target="_self"  ID="LinkButton11"
                PostBackUrl='<%# "~/ObraAdmin/"+  DataBinder.Eval (Container.DataItem,"tipoFormulario").ToString() %>' 
               />  
               
            </td>
            <td  align="right">
             <%# Eval("fechaStr")%> <br />
                
            </td>
             <td  align="right">
              <%# Eval("documento")%> <br />
                
            </td>
            <td > 
              
            <%# Eval("numero")%> <br />
            </td>
             
            
            <td align="right" width="50px">
            <%# Eval("motivo")%>
                 
            </td>
             <td align="right" width="90px">
            <%# Eval("entrada")%>
                 
            </td>
             <td align="right" width="90px">
            <%# Eval("salida")%>
                 
            </td>

              <td align="right" width="90px">
               <%# Eval("stock")%>
                                                    
            </td>
          
            <td align="right" width="250px">
                <%# Eval("proveedor") %>
              
            </td>

              <td >
               <%# Eval("observacion")%>
                                                    
            </td>
       
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" >
            <tr>
                <td>
                   <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>





    
     